package cn.edu.bjfu.practice.practice.teacher.pojo.query;

import jdk.jfr.BooleanFlag;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

public class UpdateStudentForm {

    @Range(min = 0)
    private Integer id;

    @NotBlank
    private String name;

    @BooleanFlag
    private Boolean sex;

    @Email
    private String email;

    @NotBlank
    private String profession;

    @NotBlank
    private String grade;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

}
